<%@page contentType="text/html; charset=utf-8" language="java"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<title>用户信息</title>
	<jsp:include page="/common/header-common.jsp"></jsp:include>
	<script type="text/javascript">
	</script>
</head>
	<body id="subuser">
		<div id="wrapper">
			<jsp:include page="/common/header.jsp"></jsp:include>
			<jsp:include page="navication.jsp"></jsp:include>
			<div id="rss_content">
				<div class="rss_title">用户信息</div>
				<div class="rss_description">用户信息</div>
				<s:if test="message != null">
					<div class="return_tip">
						<s:property value="message" />
					</div>
				</s:if>
				<s:form action="userInfo" theme="simple">
					<table>
						<tr>
							<td class="rss_label">用户名</td>
							<td class="rss_field">
								<s:hidden name="id"></s:hidden>
								<input type="text" name="username" value="<s:property value="username" />"  readonly = "true"/>
								
							</td>
						</tr>
						<tr>
							<td class="rss_label">昵称</td>
							<td class="rss_field">
								<input type="text" name="nickname" readonly = "true" value="<s:property value="nickname" />"/>
							</td>
						</tr>
						<tr>
							<td class="rss_label">注册时间</td>
							<td class="rss_field">
								<s:date name="createTime" format="yyyy-MM-dd"/>
							</td>
						</tr>
						<tr>
							<td class="rss_label">用户级别</td>
							<td class="rss_field">
								<s:select onclick="return fasle;" list="#{1:'普通用户',2:'分公司用户',3:'总公司用户'}" name="level" theme="simple" />
							</td>
						</tr>
						<tr>
							<td class="rss_label">父用户用户名</td>
							<td class="rss_field">
								<input type="text" name="fathername" value="<s:property value="fathername" />" readonly = "true"/>
							</td>
						</tr>
						<s:if test="sdevices != null">
							<tr>
							</tr>
							<tr>
								<td class="rss_label"><span style="font-weight:bold;">用户拥有的设备</span></td>
							</tr>
							<tr>
								<td class="rss_label" align="center">设备号</td>
								<td class="rss_label" align="center">车号</td>
							</tr>
							<s:iterator value="sdevices" id="sdevice">
								<tr>
									<td class="rss_label" align="center">
										<s:property value="#sdevice.devicenum" />
									</td>
									<td class="rss_label" align="center">
										<s:property value="#sdevice.carnum" />
									</td>
								</tr>
							</s:iterator>
						</s:if>
					</table>
				</s:form>
			</div>
			<div style="clear: both;"></div>
			<div style="height: 40px;" ></div>
			<s:include value="/common/footer.jsp"></s:include>
		</div>
	</body>
</html>